package com.yxt.user.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * 菜单vo
 */
@Data
public class MenuVO {
    private String url;
    private String path;
    private String name;
    private String redirect;
    private Meta meta;
    private Long menuId;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist=false)
    private List<MenuVO> children;

    @Data
    public static class Meta{
        private String title;

        private String icon;
    }
}
